Oa.controller('staffInfoCtrl',function($scope,$http){
		$scope.showModal = false;
		$scope.delProvider = function(id) {
			console.log(1),
			$scope.showModal = !$scope.showModal;
			$scope.showModal = true;
			$scope.deleteproviderId = id;
		};
		$scope.sureDelProvider = function() {
	//		$http.get(delProviderURL, {
//					params: {
//						companyId: $scope.deleteproviderId
//					} 
	//			})
	//			.success(function(res) {
//					alertMes(res.serviceResult, res.resultInfo);
//					$scope.getRecord();
	//			}).error(function() {
	//				alertMes('noHttp', null);
	//			});
			$scope.showModal = !$scope.showModal;
		}

/**********   添加供货商start***************/
  $scope.newProvider = {};
  $scope.showAModel = false;
  $scope.addProviderBtn = function() {
  	console.log(1)
    $scope.showAModel = !$scope.showAModel;
  }
  $scope.addProvider = function() {
  $http.post(addProviderURL,$scope.newProvider)
  .success(function(res){
   if (!res.serviceResult) {
//    alertMes(res.serviceResult,res.resultInfo);
    }else {
//    $scope.getRecord();
//      $scope.showAModel = !$scope.showAModel;
    }
  }).error(function(){
    alertMes('noHttp',null);
  });
  }
});